package com.zhr.handler;

import com.zhr.server.WeixinRequest;
import com.zhr.server.WeixinResponse;

public interface MessageHandler extends Comparable<MessageHandler> {

	/**
	 * The minimum priority that a thread can have.
	 */
	public final static int MIN_PRIORITY = 1;

	/**
	 * The default priority that is assigned to a thread.
	 */
	public final static int NORM_PRIORITY = 5;

	/**
	 * The maximum priority that a thread can have.
	 */
	public final static int MAX_PRIORITY = 10;

	public boolean accpet(WeixinRequest request);

	public WeixinResponse handle(WeixinRequest request);

	public int getPriority();

}
